/**
 * This is an example of how to set up the [EventBus] and its events.
 */
import 'package:event_bus/event_bus.dart';

import 'index.dart';

/// The global [EventBus] object.
EventBus eventBus = EventBus();

enum EventType {
  add /* 0 */,
  edit /* 1<<0 */,
  delete /* 1<<1 */
}

class BaseEvent {
  EventType eventType;

  BaseEvent(this.eventType);
}

class OrderEvent extends BaseEvent {
  late Order order;

  OrderEvent(eventType, this.order) : super(eventType);
}

class SelectEvent {
  List<FilterSelectData> selectList;

  SelectEvent(this.selectList);
}


class AnimationEvent {
  int index;

  bool show;

  AnimationEvent(this.index, this.show);
}
